package com.tocean.app.entity.framework;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.tocean.app.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
@ApiModel
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName("ranks")
public class Ranks extends BaseEntity {

    @ApiModelProperty("名字")
    @NotEmpty
    @TableField(value = "name")
    private String name;

    @ApiModelProperty("分数")
    @NotEmpty
    @TableField(value = "score")
    private int score;
    
}
